{Template header}

<div style="height:10px;" class="wp bgcolor"></div>

<div class="wp bgcolor">
     <div style="width:990px;margin-left:auto;margin-right:auto;">
	 <div style="width:740px;float:left;background:#FFFFFF;border:#E2E2E2 1px solid;border-top:0px;">
	           <div class="index_title_bg">
					<div class="index_title6" style="float:left;">在线留言</div>
			   <div style="float:right;line-height:35px;padding-right:10px;font-size:12px;color:#62431B;">您现在的位置：<a href="/">首页</a> >> 在线留言</div>
		       </div>
		 <div>
		    
		       
		       
			    <div>
  {if (strstr(uri_string(),'glist')) }                   
 
 
 
 
 				<div class="pagecontent">
                    	 
                        
                        
                        
                        <div class="c">
                        <div class="m_list" style="">
                             {loop $message as $val}
                                 
                                       
                                       
                                       <div class="m_content">
                                       		 <h2 class="m_title" >{$val[txt_Title]}</h2>
                                       			
                                                <div class="m_c">{$val[txt_Content]}</div>
                                                
                                       {if ($val[reply]) }<p class="m_reply">管理员回复：{$val[reply]}</p>{/if}
                                       
                                       			<div class="m_time">留言时间：{date('Y-m-d H:i:s',$val[addtime])}</div>

                                       </div>
                                       

                                 
                            {/loop}
                   
                             
                        </div>            
                               <div class="page">
                                {$page}
                            </div>    
                        </div>
                       
                    </div>
 
 
 {else}
<script type="text/javascript">

        //所填信息是否完整
	    function CheckData()		
		{
		    //姓名
		    var txt_Name=document.getElementById("txt_Name").value;
		    if( txt_Name == "" )
		    {
		        alert('请输入姓名.');
				document.getElementById("txt_Name").focus();
		        return false;
		    }

		    //性别
		    var dropSex=document.getElementById("dropSex").value;
		    if( dropSex == "" )
		    {
		    	alert('请选择性别.');
				document.getElementById("dropSex").focus();
		        return false;
		    }
		    
		    //邮箱
		    var txt_Email=document.getElementById("txt_Email").value;
		    if( txt_Email == "" )
		    {
		    	alert('请输入邮箱.');
				document.getElementById("txt_Email").focus();
		        return false;
		    }
		    if(!validateEmail(txt_Email))
	        {
		    	alert('请输入正确邮箱');
				document.getElementById("txt_Email").focus();
	            return false;
	        }
		    
		    
		    //主题
		    var txt_Title=document.getElementById("txt_Title").value;
		    if( txt_Title == "" )
		    {
		    	alert('请输入主题.');
				document.getElementById("txt_Title").focus();
		        return false;
		    }

		    //内容
		    var txt_Content=document.getElementById("txt_Content").value;
		    if( txt_Content == "" )
		    {
		    	alert('请输入内容.');
				document.getElementById("txt_Content").focus();
		        return false;
		    }
     
	       return true;
		}
		
		
		function validateEmail(value)
	    {
      	    var patn = /^[_a-zA-Z0-9\-]+(\.[_a-zA-Z0-9\-]*)*@[a-zA-Z0-9\-]+([\.][a-zA-Z0-9\-]+)+$/;
    	    if(!patn.test(value))
    	    {
        	    return false;
    	    }
		    return true;
    		
	    }
	    
	 
 </script>	   
                    
                                     
                    <div class="pagecontent">
                     
                        <div class="c">
                       
                       
                       
                       
                        <div class="feefback_content">
                                    
                                     <form action="{site_url('message')}" method="post"   name="form1" > 
                           
                                   
                                    	<table width="100%" border="0" cellspacing="3" cellpadding="0">
                                            <tr>
                                                <td class="feefback_content_tdtext"><span class="redfont">
                                                    <span id="lbl_message_FeedBack_Name">姓　　名：</span>
                                                    </span></td>
                                                <td align=left>
                                                    <input name="txt_Name" type="text" id="txt_Name" class="feedback_email_input" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="feefback_content_tdtext"><span class="redfont">
                                                <span id="lbl_message_FeedBack_Sex">性　　别：</span></td>
												<td align=left>
                                                    <select name="dropSex" id="dropSex" class="feedback_email_select">
	<option value="">请选择</option>
	<option value="M">先生</option>
	<option value="F">女士</option>

</select>
												</td>
                                            </tr>
                                            <tr>
                                                <td><span id="lbl_message_FeedBack_PositionName">职　　位：</span></td>
                                                <td align=left>
                                                <input name="txt_Position_Name" type="text" id="txt_Position_Name" class="feedback_email_input" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td><span id="lbl_message_FeedBack_CompanyName">公司名称：</span></td>
                                                <td align=left>
                                                <input name="txt_Company_Name" type="text" id="txt_Company_Name" class="feedback_email_input" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td><span class="redfont"><span id="lbl_message_FeedBack_Email">邮件地址：</span></span></td>
                                                <td align=left>
                                                <input name="txt_Email" type="text" id="txt_Email" class="feedback_email_input" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td><span id="lbl_message_FeedBack_Phone">电话号码：</span></td>
                                                <td align=left>
                                               <input name="txt_Phone" type="text" id="txt_Phone" class="feedback_email_input" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td><span id="lbl_message_FeedBack_Fax">传真号码：</span></td>
                                                <td align=left>
                                               <input name="txt_Fax" type="text" id="txt_Fax" class="feedback_email_input" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td><span class="redfont"><span id="lbl_message_FeedBack_MainTitle">主　　题：</span></span></td>
                                                <td align=left>
                                               <input name="txt_Title" type="text" id="txt_Title" class="feedback_email_input" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td valign="top";><span class="redfont"><span id="lbl_message_FeedBack_Content">内　　容：</span></span></td>
                                                <td align=left>
                                                    <textarea name="txt_Content" rows="2" cols="20" id="txt_Content" style="height:150px;width:500px;"></textarea>
                                                </td>
                                            </tr>
                                            <tr>
                                            	<td></td>
                                            	<td class="putfbeml">
                       <a href="javascript:;"><span id="lbl_message_FeedBack_Submit" onclick="document.getElementById('btnSubmit').click()" style="cursor:pointer;">提交</span><input type="submit" name="btnSubmit" value="btnSubmit" onclick="return CheckData();" id="btnSubmit" style="display:none" /></a>
                                            	    <a href="#">
                                            	        <span id="lbl_message_FeedBack_Back" onclick="document.forms['form1'].reset();return false;" style="cursor:pointer;">重写</span>
                                            	        
                                            	    </a>
                                            	</td>
                                            </tr>
                                        </table>
                                        
                                        </form>
                                    </div>
          
                       
                 
                              
                          <div class="page">
                                {$page}
                          </div>   
                            
                            
                             
                        </div>
                        
                    </div>
                    
{/if}
                    
		      </div>
		 </div>
	 </div>
     <div style="width:240px;float:right;background:#FFFFFF;border:#E2E2E2 1px solid;border-top:0px;">
	           <div class="index_title_bg" style="height:100px;">
		            <div class="index_title7"><div style="padding-left:20px;">客户留言</div></div>
                    <div class="classtitle" style="padding-left:6px;padding-right:6px;">
					    <ul>
                    
                    	<li  {if (strstr(uri_string(),'glist')) } class="act"{/if} ><a href="{site_url('message/glist')}"  >留言列表</a></li>
                        <li  {if (uri_string() == 'message') } class="act"{/if}  ><a href="{site_url('message')}"  >我要留言</a></li>
                    
                    </ul>
			</div>
                    
                    
		       </div>
		  <div style="padding-bottom:10px;">
 
		 </div>

		 <div style="margin-top:10px;">
	           <div class="index_title_bg">
		            <div class="index_title7"><div style="padding-left:20px;">联系我们</div></div>
		       </div>
		  <div style="padding:10px;font-size:12px;line-height:180%;background:#ffffff;">
{chips('contact')}
			   <div style="clear:both"></div>
		  </div>	
	     </div>
	 </div>
	 
	 <div style="clear:both"></div>
</div>
</div>

<div style="height:10px;" class="wp bgcolor"></div>

{Template footer}
</body>
</html>